package com.byzk.p2p.admin.system.dto;

import java.util.Date;
import com.byzk.p2p.admin.system.vo.MenuItem;

/**
 * 后台系统菜单
 * @author suker.zhou
 *
 */
public class Menu {

	private Integer id;
	
	private String name;
	
	private String url;
	
	private Integer pid;
	
	private Integer order;
	
	private String ico;
	
	private String remark;
	
	private Date createTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public String getIco() {
		return ico;
	}

	public void setIco(String ico) {
		this.ico = ico;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	public MenuItem convertItem(Menu menu){
		MenuItem item =new MenuItem();
		item.setId(menu.getId());
		item.setIcon(menu.getIco());
		item.setName(menu.getName());
		item.setUrl(menu.getUrl());
		return item;
	}
}
